David killed a lot of people by disobeying God.
- Counted the Israelites - Did David die or get punished? No, 70,000 israelites died.
- Had sex with a married woman which is punishable by death for both - Did David die or Bathsheba? No. The child that didn't have a choice got killed.
- Killed Bathsheba's husband - Didn't die.
And let's not forget that God "rewarded" the two of them with Solomon who also got some freebies in life with all of his wives, chariots etc.
God is good to his "friends" but if you aren't, you can get instant death like the poor guy who touched the ark because it was tilting.
I can think of numerous excuses the WT has provided for God, as to why he was right in doing these things.
By the way, if you read the choices David had for punishment when he counted the nation, the first was having enemies come and fight them, the second was a famine. Both would have impacted David and his finances more than the plague he chose. And it doesn't appear that David thought he could possibly die. It's all good....